package property.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class FeedbackExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FeedbackExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andFbIdIsNull() {
            addCriterion("fb_id is null");
            return (Criteria) this;
        }

        public Criteria andFbIdIsNotNull() {
            addCriterion("fb_id is not null");
            return (Criteria) this;
        }

        public Criteria andFbIdEqualTo(Integer value) {
            addCriterion("fb_id =", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdNotEqualTo(Integer value) {
            addCriterion("fb_id <>", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdGreaterThan(Integer value) {
            addCriterion("fb_id >", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fb_id >=", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdLessThan(Integer value) {
            addCriterion("fb_id <", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdLessThanOrEqualTo(Integer value) {
            addCriterion("fb_id <=", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdIn(List<Integer> values) {
            addCriterion("fb_id in", values, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdNotIn(List<Integer> values) {
            addCriterion("fb_id not in", values, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdBetween(Integer value1, Integer value2) {
            addCriterion("fb_id between", value1, value2, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fb_id not between", value1, value2, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateIsNull() {
            addCriterion("fb_submit_date is null");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateIsNotNull() {
            addCriterion("fb_submit_date is not null");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateEqualTo(Date value) {
            addCriterionForJDBCDate("fb_submit_date =", value, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("fb_submit_date <>", value, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateGreaterThan(Date value) {
            addCriterionForJDBCDate("fb_submit_date >", value, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("fb_submit_date >=", value, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateLessThan(Date value) {
            addCriterionForJDBCDate("fb_submit_date <", value, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("fb_submit_date <=", value, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateIn(List<Date> values) {
            addCriterionForJDBCDate("fb_submit_date in", values, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("fb_submit_date not in", values, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("fb_submit_date between", value1, value2, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbSubmitDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("fb_submit_date not between", value1, value2, "fbSubmitDate");
            return (Criteria) this;
        }

        public Criteria andFbTypeIsNull() {
            addCriterion("fb_type is null");
            return (Criteria) this;
        }

        public Criteria andFbTypeIsNotNull() {
            addCriterion("fb_type is not null");
            return (Criteria) this;
        }

        public Criteria andFbTypeEqualTo(Byte value) {
            addCriterion("fb_type =", value, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeNotEqualTo(Byte value) {
            addCriterion("fb_type <>", value, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeGreaterThan(Byte value) {
            addCriterion("fb_type >", value, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("fb_type >=", value, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeLessThan(Byte value) {
            addCriterion("fb_type <", value, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeLessThanOrEqualTo(Byte value) {
            addCriterion("fb_type <=", value, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeIn(List<Byte> values) {
            addCriterion("fb_type in", values, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeNotIn(List<Byte> values) {
            addCriterion("fb_type not in", values, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeBetween(Byte value1, Byte value2) {
            addCriterion("fb_type between", value1, value2, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("fb_type not between", value1, value2, "fbType");
            return (Criteria) this;
        }

        public Criteria andFbIssueIsNull() {
            addCriterion("fb_issue is null");
            return (Criteria) this;
        }

        public Criteria andFbIssueIsNotNull() {
            addCriterion("fb_issue is not null");
            return (Criteria) this;
        }

        public Criteria andFbIssueEqualTo(String value) {
            addCriterion("fb_issue =", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueNotEqualTo(String value) {
            addCriterion("fb_issue <>", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueGreaterThan(String value) {
            addCriterion("fb_issue >", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueGreaterThanOrEqualTo(String value) {
            addCriterion("fb_issue >=", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueLessThan(String value) {
            addCriterion("fb_issue <", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueLessThanOrEqualTo(String value) {
            addCriterion("fb_issue <=", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueLike(String value) {
            addCriterion("fb_issue like", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueNotLike(String value) {
            addCriterion("fb_issue not like", value, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueIn(List<String> values) {
            addCriterion("fb_issue in", values, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueNotIn(List<String> values) {
            addCriterion("fb_issue not in", values, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueBetween(String value1, String value2) {
            addCriterion("fb_issue between", value1, value2, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbIssueNotBetween(String value1, String value2) {
            addCriterion("fb_issue not between", value1, value2, "fbIssue");
            return (Criteria) this;
        }

        public Criteria andFbStatusIsNull() {
            addCriterion("fb_status is null");
            return (Criteria) this;
        }

        public Criteria andFbStatusIsNotNull() {
            addCriterion("fb_status is not null");
            return (Criteria) this;
        }

        public Criteria andFbStatusEqualTo(Byte value) {
            addCriterion("fb_status =", value, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusNotEqualTo(Byte value) {
            addCriterion("fb_status <>", value, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusGreaterThan(Byte value) {
            addCriterion("fb_status >", value, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("fb_status >=", value, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusLessThan(Byte value) {
            addCriterion("fb_status <", value, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusLessThanOrEqualTo(Byte value) {
            addCriterion("fb_status <=", value, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusIn(List<Byte> values) {
            addCriterion("fb_status in", values, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusNotIn(List<Byte> values) {
            addCriterion("fb_status not in", values, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusBetween(Byte value1, Byte value2) {
            addCriterion("fb_status between", value1, value2, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("fb_status not between", value1, value2, "fbStatus");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionIsNull() {
            addCriterion("fb_satisfaction is null");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionIsNotNull() {
            addCriterion("fb_satisfaction is not null");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionEqualTo(Byte value) {
            addCriterion("fb_satisfaction =", value, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionNotEqualTo(Byte value) {
            addCriterion("fb_satisfaction <>", value, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionGreaterThan(Byte value) {
            addCriterion("fb_satisfaction >", value, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionGreaterThanOrEqualTo(Byte value) {
            addCriterion("fb_satisfaction >=", value, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionLessThan(Byte value) {
            addCriterion("fb_satisfaction <", value, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionLessThanOrEqualTo(Byte value) {
            addCriterion("fb_satisfaction <=", value, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionIn(List<Byte> values) {
            addCriterion("fb_satisfaction in", values, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionNotIn(List<Byte> values) {
            addCriterion("fb_satisfaction not in", values, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionBetween(Byte value1, Byte value2) {
            addCriterion("fb_satisfaction between", value1, value2, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbSatisfactionNotBetween(Byte value1, Byte value2) {
            addCriterion("fb_satisfaction not between", value1, value2, "fbSatisfaction");
            return (Criteria) this;
        }

        public Criteria andFbNotesIsNull() {
            addCriterion("fb_notes is null");
            return (Criteria) this;
        }

        public Criteria andFbNotesIsNotNull() {
            addCriterion("fb_notes is not null");
            return (Criteria) this;
        }

        public Criteria andFbNotesEqualTo(String value) {
            addCriterion("fb_notes =", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesNotEqualTo(String value) {
            addCriterion("fb_notes <>", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesGreaterThan(String value) {
            addCriterion("fb_notes >", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesGreaterThanOrEqualTo(String value) {
            addCriterion("fb_notes >=", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesLessThan(String value) {
            addCriterion("fb_notes <", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesLessThanOrEqualTo(String value) {
            addCriterion("fb_notes <=", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesLike(String value) {
            addCriterion("fb_notes like", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesNotLike(String value) {
            addCriterion("fb_notes not like", value, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesIn(List<String> values) {
            addCriterion("fb_notes in", values, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesNotIn(List<String> values) {
            addCriterion("fb_notes not in", values, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesBetween(String value1, String value2) {
            addCriterion("fb_notes between", value1, value2, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbNotesNotBetween(String value1, String value2) {
            addCriterion("fb_notes not between", value1, value2, "fbNotes");
            return (Criteria) this;
        }

        public Criteria andFbUserIdIsNull() {
            addCriterion("fb_user_id is null");
            return (Criteria) this;
        }

        public Criteria andFbUserIdIsNotNull() {
            addCriterion("fb_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andFbUserIdEqualTo(Integer value) {
            addCriterion("fb_user_id =", value, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdNotEqualTo(Integer value) {
            addCriterion("fb_user_id <>", value, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdGreaterThan(Integer value) {
            addCriterion("fb_user_id >", value, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fb_user_id >=", value, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdLessThan(Integer value) {
            addCriterion("fb_user_id <", value, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("fb_user_id <=", value, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdIn(List<Integer> values) {
            addCriterion("fb_user_id in", values, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdNotIn(List<Integer> values) {
            addCriterion("fb_user_id not in", values, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdBetween(Integer value1, Integer value2) {
            addCriterion("fb_user_id between", value1, value2, "fbUserId");
            return (Criteria) this;
        }

        public Criteria andFbUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fb_user_id not between", value1, value2, "fbUserId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}